package com.qianmang.damawangticket.activity;

import android.content.ComponentName;
import android.content.Intent;
import android.view.View;

import com.qianmang.damawangticket.R;

public class MainActivity extends BaseActivity{
    @Override
    protected int loadLayoutRes() {
        return R.layout.activity_main;
    }

    @Override
    protected void onFindView() {
        findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ComponentName componentName = new ComponentName("cn.damai","cn.damai.launcher.splash.SplashMainActivity");
                Intent intent = new Intent();
                intent.setComponent(componentName);
                startActivity(intent);
            }
        });
    }
}
